package com.practice2.exercise;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {

    @Test
    public void test(){
        ClassPathXmlApplicationContext classPathXmlApplicationContext =
                new ClassPathXmlApplicationContext("user.xml");

        User user1 = (User) classPathXmlApplicationContext.getBean("user1");
        user1.show();

        User user2 = (User) classPathXmlApplicationContext.getBean("user2");
        user2.show();
    }
}
